#if !defined(AFX_PARTCONNECTVIEW_H__0E7CD607_7754_4DF0_A2F4_873A537F8DE8__INCLUDED_)
#define AFX_PARTCONNECTVIEW_H__0E7CD607_7754_4DF0_A2F4_873A537F8DE8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PartConnectView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPartConnectView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "PhsShareres.h"
#include "PartConnect.h"
#include "FormViewEx.h"

class CPartConnectView : public CFormViewEx
{
protected:
	CPartConnectView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPartConnectView)

public:
	void LinkToObject(PartConnect* pConnect){
			m_pObject = pConnect;
	}
// Form Data
public:
	//{{AFX_DATA(CPartConnectView)
	enum { IDD = IDD_PART_CONNECT };
	CString	m_strCustomID;
	CString	m_strName;
	CString	m_strDia;
	CString	m_strMaterial;
	CString	m_strSpec;
	CString	m_strDim;
	CString	m_strLoad;
	CString	m_strTemperature;
	CString	m_strWeight;
	CString	m_strClgg;
	//}}AFX_DATA

private:
	void UpdateObjectData();
	void LoadMaterial();
	void LoadDia();
	void LoadBH();
	void LoadSpec();
	void LoadOthers();

private:
	PartConnect* m_pObject;
	BOOL m_bIsFirstVisible;
	PartConnect* m_pPart;
	
// Attributes
public:
	CString m_strTable;
	CString m_strObservation;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPartConnectView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CPartConnectView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CPartConnectView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSelchangeDiaCombo();
	afx_msg void OnChangeLoadEdit();
	afx_msg void OnSelchangeMaterialCombo();
	afx_msg void OnSelchangeSpecCombo();
	afx_msg void OnChangeTemperatureEdit();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PARTCONNECTVIEW_H__0E7CD607_7754_4DF0_A2F4_873A537F8DE8__INCLUDED_)
